def matrix_dot_vector(a:list[list[int|float]],b:list[int|float])-> list[int|float]:
    if len(a[0]) != len(b):
        return -1
    m = len(b)
    vals = []
    for va,i in enumerate(a):
        val = 0
        for j in range(m):
            val += va[j] * b[j]
        vals.append(val)
    return vals